body {
    font-family: '微软雅黑', Arial, sans-serif;
    margin: 0;
    background-color: #f5f5f5;
    display: flex;
    min-height: 100vh;
}

/* 导航栏样式 */
.nav-container {
    width: 250px;    
    background-color: #2c3e50;
    padding: 20px 0;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.1);
    position: relative; /* 新增 */    
}

.nav-title {
    color: #ecf0f1;
    text-align: center;
    padding: 15px;
    font-size: 1.2em;
    border-bottom: 1px solid #34495e;
}

.nav-buttons {
    padding: 15px 0;
}

.nav-button {
    display: block;
    width: 100%;
    padding: 12px 25px;
    color: #bdc3c7;
    text-decoration: none;
    transition: all 0.3s ease;
    border-left: 4px solid transparent;
}

.nav-button:hover {
    background-color: #34495e;
    color: #ecf0f1;
    border-left-color: #3498db;
}

.nav-button.active {
    background-color: #34495e;
    color: #ecf0f1;
    border-left-color: #3498db;
}

/* 内容区域 */
.content-container {
    flex: 1;
    padding: 2rem;
    max-width: 1200px;    
}

.container {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    padding: 2rem;
}

/* 页面容器 */
.page-container {
    display: none;
    animation: fadeIn 0.3s ease;
}

.page-container.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* 版本表格样式 */
.version-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1.5rem;
}

.version-table th {
    background-color: #2c3e50;
    color: white;
    padding: 12px 15px;
    text-align: left;
}

.version-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #ddd;
    color: #333;
}

.version-table tr {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.version-table tr:hover {
    background-color: #f9f9f9;
}

.version-table tr:nth-child(even) {
    background-color: #f8f9fa;
}

.header {
    text-align: center;
    color: #34495e;
    margin-bottom: 1.5rem;
}

.create-btn {
    margin-top: 1.5rem;
    padding: 12px 24px;
    background-color: #2c3e50;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    float: right;
}

.create-btn:hover {
    background-color: #34495e;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 弹窗样式 */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 80%;
    max-width: 600px;
    position: relative;
    animation: modalSlide 0.3s ease;
}

@keyframes modalSlide {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-close {
    position: absolute;
    right: 1rem;
    top: 1rem;
    cursor: pointer;
    font-size: 1.5rem;
    background: none;
    border: none;
}

.version-detail {
    margin-top: 1rem;
}

.detail-item {
    margin: 1rem 0;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 4px;
}

.detail-item label {
    display: block;
    color: #7f8c8d;
    margin-bottom: 0.5rem;
}

.detail-item p {
    margin: 0;
    color: #2c3e50;
    font-weight: 500;
}

/* 新增配置按钮样式 */
.config-actions {
    margin-top: 2rem;
    border-top: 1px solid #eee;
    padding-top: 1rem;
    text-align: center;
}

.config-btn {
    padding: 10px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.config-btn:hover {
    background-color: #2980b9;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .nav-container {
        width: 100%;
        height: auto;
    }

    .nav-buttons {
        display: flex;
        flex-wrap: wrap;
    }

    .nav-button {
        padding: 10px 15px;
    }

    .content-container {
        padding: 1rem;
    }

    .create-btn {
        width: 100%;
        float: none;
        margin-top: 1rem;
    }

    .modal-content {
        width: 90%;
        padding: 1rem;
    }
}

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}

.modal-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    width: 500px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-sizing: border-box;
}

.form-actions {
    text-align: right;
    margin-top: 20px;
}

.confirm-btn,
.cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
}

.confirm-btn {
    background: #1890ff;
    color: white;
}

.cancel-btn {
    background: #f5f5f5;
    color: rgba(0, 0, 0, 0.85);
}

.config-actions {
    display: flex;
    gap: 15px;
    /* 按钮间距 */
    margin-top: 20px;
}

.delete-btn {
    background: #ff4d4f;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
}

.delete-btn:hover {
    background: #ff7875;
}